package cn.cupk.logsystem.log.decoratorPattern;

import cn.cupk.logsystem.log.LogRecord;
import cn.cupk.logsystem.log.observerPattern.Handler;

public abstract class HandlerDecorator extends Handler {
    protected final Handler wrappedHandler;

    public HandlerDecorator(Handler handler) {
        this.wrappedHandler = handler;
    }

    public abstract void publish(LogRecord record);
}

